package com.wnx.job.modules.nms.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * <p>
 *
 * </p>
 *
 * @author 王乃醒是大帅哥
 * @since 2021-09-25
 */
@Data
public class ArticleAttachmentParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @ApiModelProperty(value = "自增主键")
    private Long id;

    /**
     * 咨询ID
     */
    @ApiModelProperty(value = "咨询ID")
    @NotNull(message = "咨询ID不能为空！")
    private Long articleId;

    /**
     * 附件名称
     */
    @ApiModelProperty(value = "附件名称")
    @NotBlank(message = "咨询附件名称不能为空！")
    private String name;

    /**
     * 附件URL
     */
    @ApiModelProperty(value = "附件URL")
    @NotBlank(message = "咨询附件的访问URL不能为空！")
    private String url;



    //===============附加属性=================//

    /**
     * 咨询附件关联的咨询详情
     */
    private ArticleParam article;



    //用于展示表格的两个字段
    /**
     * 咨询名
     */
    private String articleName;
    /**
     * 咨询作者名
     */
    private String author;

    //===============附加属性=================//




}
